package field_method_13;

import java.awt.*;
import java.util.ArrayList;
import java.util.HashMap;

public class Map {
    public static void main(String[] args) {
        List students = new ArrayList<>();

        HashMap<String, String> student1 = new HashMap<>();
        HashMap<String, String> student2 = new HashMap<>();

        student1.put("name", "张三");
        student1.put("age", "18");
        student1.put("sex", "男");
        students.add(String.valueOf(student1));

        student2.put("name", "李四");
        student2.put("age", "19");
        student2.put("sex", "女");
        students.add(String.valueOf(student2));

        System.out.println(students);
    }
}
